package com.fs.sw.utils;

import org.springframework.validation.BindingResult;

public class FunctionUtil {
    public static void shrowError(BindingResult error){
        if(error.hasErrors()){
            error.getAllErrors().stream().forEach(e -> {
                System.out.println(e.getDefaultMessage());
            });
        }

    }
}
